<?php

namespace App\Providers;

use App\Listeners\Subscriber\SystemSubscriber;
use SocialiteProviders\Manager\SocialiteWasCalled;
use App\Listeners\Subscriber\LoginLogSubscriber;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;


class EventServiceProvider extends ServiceProvider
{
    /**
     * 注册事件监听
     *
     * @var array
     */
    protected $listen = [
        // 第三方登录
        SocialiteWasCalled::class => [
            \SocialiteProviders\QQ\QqExtendSocialite::class,
        ]
    ];


    /**
     * 注册事件订阅者
     *
     * @var array
     */
    protected $subscribe = [
        SystemSubscriber::class,
        LoginLogSubscriber::class,
    ];
}
